'use strict'

module.exports = {
  up: (queryInterface, Sequelize) => {
    /*
      Add altering commands here.
      Return a promise to correctly handle asynchronicity.

      Example:
      return queryInterface.bulkInsert('People', [{
        name: 'John Doe',
        isBetaMember: false
      }], {});
    */
    return queryInterface.bulkInsert(
      'Userinfos',
      [
        {
          id: 1,
          userid: 1,
          img_url:
            'https://2sc2.autoimg.cn/escimg/g3/M03/39/AE/f_720x540_0_q87_autohomecar__ChsEm17HTL6AWdxzAAIb9NEVqQE718.jpg',
          car_color: '黑色',
          car_info: '奔驰E级 2017款 E 320 L 4MATIC',
          car_license: '京HHF718',
          createdAt: new Date(1483228800),
          updatedAt: new Date(),
        },
        {
          id: 2,
          userid: 2,
          img_url:
            'https://2sc2.autoimg.cn/escimg/g30/M00/63/1E/f_900x675_0_q87_autohomecar__ChwFlF7Du6aAbq6iAAJr5Qoa6P0319.jpg',
          car_color: '白色',
          car_info: '奔驰E级 2018款 改款 E 200 L 运动型',
          car_license: '京N83BC8',
          createdAt: new Date(1514764800),
          updatedAt: new Date(),
        },
        {
          id: 3,
          userid: 3,
          img_url:
            'https://2sc2.autoimg.cn/escimg/g3/M06/1A/C4/f_900x675_0_q87_autohomecar__ChwFlV6yFQOAHVBdAAMsoV69G9o664.jpg',
          car_color: '黑色',
          car_info: '奔驰E级 2018款 E 300 L 豪华型',
          car_license: '京NZ6235',
          createdAt: new Date(1522540800),
          updatedAt: new Date(),
        },
        {
          id: 4,
          userid: 4,
          img_url:
            'https://2sc2.autoimg.cn/escimg/g2/M0A/45/FF/f_900x675_0_q87_autohomecar__ChwFql7A8AGAHp4EAAMCK_ml_m0656.jpg',
          car_color: '黑色',
          car_info: '奔驰E级 2019款 E 300 L 时尚型',
          car_license: '京EEJ660',
          createdAt: new Date(1546300800),
          updatedAt: new Date(),
        },
        {
          id: 5,
          userid: 5,
          img_url:
            'https://2sc2.autoimg.cn/escimg/g28/M0A/E7/FC/f_900x675_0_q87_autohomecar__ChsEnl6qgpuAY7VSAAI-0zRtvaM607.jpg',
          car_color: '银灰色',
          car_info: '奔驰E级 2011款 E 260 L CGI时尚型',
          car_license: '京N2KZ55',
          createdAt: new Date(1317427200),
          updatedAt: new Date(),
        },
        {
          id: 6,
          userid: 6,
          img_url:
            'https://2sc2.autoimg.cn/escimg/g2/M0B/59/E2/f_900x675_0_q87_autohomecar__ChsEml7As4yAFxFvAAItjlnszPk879.jpg',
          car_color: '银灰色',
          car_info: '奔驰E级 2012款 E 300 L 时尚豪华型新上顶配',
          car_license: '京MJUII2',
          createdAt: new Date(1330560000),
          updatedAt: new Date(),
        },
        {
          id: 7,
          userid: 7,
          img_url:
            'https://2sc2.autoimg.cn/escimg/g1/M02/34/01/f_900x675_0_q87_autohomecar__ChsEj16_eRmAf4uNAALwsGoZdxU733.jpg',
          car_color: '银灰色',
          car_info: '奔驰E级 2015款 E 260 L 运动型',
          car_license: '京MKP067',
          createdAt: new Date(1417392000),
          updatedAt: new Date(),
        },
      ],
      {}
    )
  },

  down: (queryInterface, Sequelize) => {
    return queryInterface.bulkDelete('Userinfo', null, {})
    /*
      Add reverting commands here.
      Return a promise to correctly handle asynchronicity.

      Example:
      return queryInterface.bulkDelete('People', null, {});
    */
  },
}
